/**
 * 
 */
package com.nqc.perodictable.config;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import android.content.Context;

/**
 * @author nguyenquocchinh
 *
 */
public class ReadConfig {

	public String[] readFromAssest(Context context)
	{
		BufferedReader buff = null;
		String[] background = new String[18];
		try {
			buff = new BufferedReader(new InputStreamReader(context.getAssets().open("config.data")));
			
			String line;
			int row = 0;
			while ((line = buff.readLine()) != null) {
				background[row] = line;			
						row ++;
			}
		} catch (IOException e) {
			// TODO: handle exception
		}
		
		return	background;
	}
	
}
